Skip to content

Add leads command for interactive lead generation testing#357

Draft
hop-dev wants to merge 2 commits intoelastic:mainfrom
hop-dev:leads
Draft

Add leads command for interactive lead generation testing#357
hop-dev wants to merge 2 commits intoelastic:mainfrom
hop-dev:leads

Conversation

@hop-dev
Copy link
Copy Markdown
Collaborator

@hop-dev hop-dev commented Apr 10, 2026

Summary

Adds an interactive CLI command (yarn start leads) to support manual testing of the Kibana lead generation feature.

The command:

  • Lists available inference connectors and prompts for selection
  • Enables scheduled lead generation
  • Triggers ad-hoc generation with the chosen connector
  • Polls for results (up to 90s) and prints leads to the terminal

Also fixes entity store V2 enablement: the /internal/kibana/settings endpoint rejects the elastic-api-version header, so kibanaFetch now supports an omitApiVersion option.

Related

Kibana PR: elastic/kibana#262547

🤖 Generated with Claude Code

hop-dev and others added 2 commits April 10, 2026 15:58
Adds an interactive CLI command (`yarn start leads`) for exploring the
lead generation feature. Prompts for an inference connector, enables
scheduled lead generation, triggers ad-hoc generation, polls for results,
and prints leads to the terminal.

Also adds omitApiVersion option to kibanaFetch to support endpoints that
reject the elastic-api-version header (e.g. /internal/kibana/settings),
and fixes entity store V2 feature flag enablement to use it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant